package com.qf.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author sunyamei
 * @version V1.0
 * @Project mybatis-plus_demo
 * @Package com.qf.pojo
 * @Description:
 * @Date 2022/7/18 11:51
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_user")
public class User implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField(value = "user_name")
    private String userName;
    @TableField(select = false)
    private String password;
    private String name;
    private Integer age;
    private String email;
    @TableField(exist = false)
    private String desc;
}
